• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

574
Views
Prueba con langosta y [Errno 111] Conexión rechazada

Tengo la aplicación django (1.6) y quiero probarla con langosta. Instalé locust==0.7.5 y pyzmq==16.0.2 y reviví muchas fallas: [Errno 111] Connection refused' más detalles a continuación

Cuando ejecuto la aplicación con el comando: locust --host=http://127.0.0.1 recibo el siguiente error:

 ConnectionError(MaxRetryError("HTTPConnectionPool(host='127.0.0.1', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f7639d89750>: Failed to establish a new connection: [Errno 111] Connection refused',))",),)

Mi archivo de langosta:

 from locust import TaskSet, HttpLocust, task class UserBehavior(TaskSet): @task def home(self): self.client.get('/') @task def programm(self): self.client.get('/programm') class WebsiteUser(HttpLocust): task_set = UserBehavior

¡Cualquier ayuda sobre cómo resolver el error sería apreciada!

about 3 years ago · Santiago Trujillo
2 answers
Answer question

0

Dado que su servidor se ejecuta en el puerto 8000 y no en el 80, intente ejecutar el comando

 locust --host=http://127.0.0.1:8000 -f <your-locust-file.py>
about 3 years ago · Santiago Trujillo Report

0

Use su dirección IP local como 192.168.1.1:8080/api/ . localhost throw Conexión rechazada.

about 3 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error